# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Test-Script
pkgname=perl-${_realname}
pkgver=1.10
pkgrel=1
pkgdesc="Basic cross-platform tests for scripts"
arch=('any')
url="http://search.cpan.org/dist/File-Which"
groups=('perl-modules')
depends=('perl' 'perl-IPC-Run3' 'perl-Probe-Perl')
license=('GPL' 'PerlArtistic')
source=("http://www.cpan.org/authors/id/P/PL/PLICEASE/${_realname}-${pkgver}.tar.gz")
md5sums=('011e805ea9967aab5d685b33e7d2e9be')

prepare() {
  cd "$srcdir/${_realname}-${pkgver}"
}

build() {
  cd "$srcdir/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir/${_realname}-${pkgver}"
  make install DESTDIR="$pkgdir"
}
